﻿/*
 * 
 * Description: Office COMAddins Connector office object library dispatcher
 */
#ifndef OCC_CWORDWINDOWS_H
#define OCC_CWORDWINDOWS_H

namespace {
constexpr const DWORD DISPID_WORDWINDOWS_GET_APPLICATION = 0x3e8;
}

class CWordWindows : public COleDispatchDriver {
public:
    CWordWindows() {}
    CWordWindows(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
    CWordWindows(const CWordWindows &dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
    LPDISPATCH get_Application()
    {
        LPDISPATCH result;
        InvokeHelper(DISPID_WORDWINDOWS_GET_APPLICATION, DISPATCH_PROPERTYGET, VT_DISPATCH, (void *)&result, nullptr);
        return result;
    }
};

#endif  // !OCC_CWORDWINDOWS_H